<template>
  <div>
    <AddOrderList :linklist="linklist"
      :tableData="tableData"
      :titleList="titleList"
      @JumpEditPage="JumpEditPage"
      @getTotal = "getTotal"/>

      <!-- <Pagings 
      :total="thisLength"
      @getPage="getPage"
      @getLimit="getLimit"
      /> -->
  </div>
</template>

<script>
import AddOrderList from '../../components/AddOrderList.vue'
// import Pagings from '../../components/Paging.vue'
export default {
  data(){
    return{
      linklist: [
        { id: 0, name: "客户名称",isRouter:false},
        { id: 1, name: "客户类型",isRouter:false},
        { id: 2, name: "联系人",isRouter:false },
        { id: 3, name: "手机号码",isRouter:false },
        { id: 4, name: "QQ",isRouter:false },
        { id: 5, name: "录入时间",isRouter:false },
        { id: 6, name: "业务员",isRouter:false },
      ],
      tableData: [
      ],
    titleList: [
        "name",
        "clientkinds",
        "relation",
        "phonenumber",
        "QQ",
        "entertime",
        "textperson",
      ],
      thisLength:0,
      limit:0,
      page:0
    }
  },
  components:{
    AddOrderList,
    // Pagings
  },

  mounted(){
    this.getLimit()
    this.getPage()
  },

  methods:{
    JumpEditPage(row){
      this.$router.push({
        path:'./Edit/?state=1',query: row
      })
    },

    getLimit(val) {
      this.limit = val;
      console.log(this.limit);
    },
    getPage(val) {
      this.page = val;
      console.log(this.page);
    },

    getTotal(list){
      this.thisLength = list;
      //  console.log("adasda",this.thisLength);
    },

  }
}
</script>

<style>

</style>